body {
    font-family: Arial, sans-serif;
    background-color: #f8f8f8;
    margin: 0;
    padding: 20px;
}

.header {
    display: flex;
    justify-content: flex-end;
    padding: 10px;
}

.container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    height: 100vh;
}

.left-section {
    display: flex;
    flex-direction: column;
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 70%;
    height: 100%;
    align-items: flex-start;
    position: relative;
}

.right-section {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    gap: 20px;
    width: 30%;
    height: 100%;
}

.overview, .instructions {
    display: flex;
    flex-wrap: wrap;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    flex-grow: 1;
}

.title {
    font-size: large;
    font-weight: bold;
    font-family: eb-garamond;
}

.overview { background-color: #d8e3ff; }
.instructions { background-color: #ffd8f0; }
.pre-activity { background-color: #ffe4b3; }
.title {margin-bottom: 20px; margin-top: 10px;}


ul {
    margin-top: 20px;
    padding-left: 20px;
}


.content {
    font-family: eb-garamond;
    font-size: large;
}

.controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    align-self: center;
    flex-wrap: wrap;
}

.input-data {
    margin-bottom: 20px;
    display: flex;
    gap: 10px; 
    align-items: center;
    justify-content: center;
}


button {
    padding: 10px 15px;
    margin: 5px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
}
#element{
    border-radius: 5px;
    margin-right: 20px;
    min-height: 40px;
    min-width: 20px;
}

.content{
    font-family: eb-garamond;
    font-size: large;
}

.enqueue { background: #2fa12f; color: white; }
.dequeue { background: #b32727; color: white; }
.peek { background: #ffb300; color: black; }
.size { background: #87dbe9; }
.empty { background: #5d5df1; color: white; }
.reset {background-color: #ff5722;color: white;}



/* Popup styling */
.popup {
    display: none;
    background: lightblue;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: opacity 0.5s ease-in-out;
    margin-top: 10px;
}

.queue-wrapper {
    width: 100%;
    overflow-x: hidden;
    padding: 10px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    transition: all 0.3s ease-in-out;
}

/* Queue element styling */
.queue-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    height: 200px;
    width: fit-content;
}

.queue-item {
    background-color: coral;
    padding: 10px;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    position: relative;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.5s ease-out, opacity 0.5s ease-in-out;
}

.queue-item.show {
    transform: translateX(0);
    opacity: 1;
}

@media(max-width : 768px)
{
    .container{
        flex-direction: column;
        height: auto;
    }

    .left-section{
        width: 100%;
    }

    .right-section{
        width: 100%;
    }

    .overview, .instructions{
        width: 100%;
        display: block;
    }
}